<template>
  <div>{{ count }}
    <el-button @click="increment">增加</el-button>
  </div>
</template>
<script setup>
import { useCounterStore } from '../../stores/counter'
import { storeToRefs } from 'pinia'

const { count } = storeToRefs(useCounterStore())
const { increment } = useCounterStore()

</script>